# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=gnome-documents
pkgver=3.34.0
pkgrel=1
pkgdesc="GNOME Documents is a document manager for GNOME 3"
url="https://wiki.gnome.org/Apps/Documents"
arch="all !s390x !mips !mips64" # gjs, librsvg
license="GPL-2.0-or-later"
# Needs the GIR data of these during runtime
depends="gnome-online-accounts libgdata libzapojit tracker-miners"
makedepends="meson gtk-doc gtk+3.0-dev evince-dev gnome-desktop-dev glib-dev
	gjs-dev gobject-introspection-dev tracker-dev libsoup-dev webkit2gtk-dev
	libgdata-dev gnome-online-accounts-dev libzapojit-dev librsvg itstool"
checkdepends="appstream-glib desktop-file-utils"
# Don't conflict with other packages which do a shared link of libgd
sonameprefix="$pkgname:"
subpackages="$pkgname-doc $pkgname-lang"
source="https://download.gnome.org/sources/gnome-documents/${pkgver%.*}/gnome-documents-$pkgver.tar.xz"

build() {
	abuild-meson . output
	meson compile ${JOBS:+-j ${JOBS}} -C output
}

check() {
	meson test --no-rebuild -v -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="5867b148aaffd02089e4f1148cf0fbce37ba0ed40c7d255f9261cd225757f56b68293d59476ab7c11ebbe310cc7935081b2770e7bc24bdbddb5934da5ea0cf87  gnome-documents-3.34.0.tar.xz"
